/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.anny.attachment.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.anny.attachment.entity.AnAttachment;
import com.jeeplus.modules.anny.attachment.mapper.AnAttachmentMapper;

/**
 * 附件Service
 * @author xy
 * @version 2018-12-05
 */
@Service
@Transactional(readOnly = true)
public class AnAttachmentService extends CrudService<AnAttachmentMapper, AnAttachment> {

	public AnAttachment get(String id) {
		return super.get(id);
	}
	
	public List<AnAttachment> findList(AnAttachment anAttachment) {
		return super.findList(anAttachment);
	}
	
	public Page<AnAttachment> findPage(Page<AnAttachment> page, AnAttachment anAttachment) {
		return super.findPage(page, anAttachment);
	}
	
	@Transactional(readOnly = false)
	public void save(AnAttachment anAttachment) {
		super.save(anAttachment);
	}
	
	@Transactional(readOnly = false)
	public void delete(AnAttachment anAttachment) {
		super.delete(anAttachment);
	}
	/**
	 * 根据商品删除规格
	 * @param id
	 */
	@Transactional(readOnly = false)
	public void deleteByLogicAscriptionId(String id){
		mapper.deleteByLogicAscriptionId(id);
	}
}